import { VNode } from "snabbdom";
/*
 * @Author: 邱狮杰
 * @Date: 2021-03-30 22:46:38
 * @LastEditTime: 2021-03-30 22:49:43
 * @FilePath: /upload-template/webpackUploadTemplate/src/render/self.ts
 * @Description: render self
 */

type Patch = (oldNode: VNode | Element, newNode: VNode) => VNode;

export function renderSelf(
  oldNode: VNode,
  newNode: VNode,
  patch: Patch
): boolean {
  patch(oldNode, newNode);
  return true;
}
